package com.dhecp.project.logstics.mapper;

import com.dhecp.core.genericDao.GenericDao;
import com.dhecp.project.business.domain.LogisticsMmodeGrads;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;


/**
 * DAO
 * @author fxz
 */
public interface LogsticsMmodeGradsMapper extends GenericDao<LogisticsMmodeGrads, String>  {

	/**
	 * 查询实体
	 * @author Jason
	 */
	List<LogisticsMmodeGrads> findLogisticsMmodeGrads(Map<String, Object> params);

	/**
	 * 查询单个实体
	 * @author Jason
	 */
	LogisticsMmodeGrads queryFirstByGuid(Map<String, Object> params);

	/**
	 * 查询单个实体
	 * @author Jason
	 */
	LogisticsMmodeGrads findByWeightAndGuid(@Param("logisticsMmodeGuid")String logisticsMmodeGuid, @Param("weight")BigDecimal weight);

	/**
	 * 新增实体
	 * @author Jason
	 */
	int insertLogisticsMmodeGrads(LogisticsMmodeGrads entity);

	/**
	 * 通过guid修改实体
	 * @author Jason
	 */
	int updateByGuid(LogisticsMmodeGrads entity);

	/**
	 * 通过LogisticsMmodeGuid删除数据
	 * @param LogisticsMmodeGrads
	 * @return
	 */
	int deleteByLogisticsMmodeGuid(LogisticsMmodeGrads LogisticsMmodeGrads);

	/**
	 * 批量新增详情
	 * @param list
	 * @return
	 */
	int insertLogisticsMmodeGradsBatch(List<LogisticsMmodeGrads> list);

	/**
	 * 删除已有的详情数据
	 * @param params
	 * @return
	 */
	int deleteLogisticsMmodeGradsMap(Map<String, Object> params);

}
